import React from 'react';
import {View, Platform} from 'react-native';
import {WebView} from 'react-native-webview';

function AviationSignatureScreen({navigation}) {
  //const demohtml = require('../../signature信手书/html5/AnySignMiniCoreV2.3.2/api_demo.html')
  const source =
    Platform.OS === 'android'
      ? {uri: 'file:///android_asset/api_demo.html'}
      : require('../../../android/app/src/main/assets/api_demo.html');
  return (
    <View style={{flex: 1, justifyContent: 'center'}}>
      <WebView
        source={source}
        style={{flex: 1}}
        originWhitelist={['*']}
        javaScriptEnabled={true}
        domStorageEnabled={true}
      />
    </View>
  );
}
/*
      <WebView source={{uri: 'https://www.baidu.com'}} />
      <WebView source={require('../../signature信手书/html5/AnySignMiniCoreV2.3.2/api_demo.html')}
      originWhitelist={['*']}
       javaScriptEnabled={true}
      domStorageEnabled={true}
       automaticallyAdjustContentInsets={false}
    />
      <Button title="Go to Home" onPress={() => navigation.navigate('Home')} />
      <Button title="Go back" onPress={() => navigation.goBack()} />
      <Button
        title="Go back to first screen in stack"
        onPress={() => navigation.popToTop()}
      />
    </View>*/
AviationSignatureScreen.permission = 'Unimplemented'; //'RAviationCardSign';
AviationSignatureScreen.routeName = 'AviationSignatureScreen';
export default AviationSignatureScreen;
